//
//  YZNetworkManager+oneYuan.h
//  YZMicroStock
//
//  Created by apple on 16/12/8.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (oneYuan)

/**
 *  获取一元实盘股票购买配置参数（跟用户相关）
 *
 *  @param success
 *  @param failure
 */
- (void)oneY_getConfigureDataSuccess:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  一元实盘发起点买
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)oneY_createStrategyWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;




/**
 *  一元实盘第一次获取点卖列表
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)oneY_getSaleListFirstWithParamsuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  一元实盘从缓存获取点卖列表
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)oneY_getSaleListMemcaWithParamsuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  一元实盘获取清算列表
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)oneY_getSettleListWithParamsuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  一元实盘点卖交易
 *
 *  @param tid             交易ID
 *  @param alwaysCloseFlag 是否递延
 *  @param success
 *  @param failure
 */
- (void)oneY_closeTradeWithID:(long long)tid andAlwaysCloseFlag:(BOOL)alwaysCloseFlag success:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;

@end
